0f0e6ce223435227a3bfcf32484f5ff762dd02d9,src/main/java/com/fasterxml/jackson/datatype/joda/deser/ReadablePeriodDeserializer.java,ReadablePeriodDeserializer,deserialize,#JsonParser#DeserializationContext#,29
Before Change
{
TreeNode treeNode = jsonParser.getCodec().readTree( jsonParser );
String periodType = ((TextNode)treeNode.get( "fieldType" ).get( "name" )).textValue();
String periodName = ((TextNode)treeNode.get( "periodType" ).get( "name" )).textValue();
int periodValue = ((IntNode)treeNode.get( periodType )).intValue();
if (periodName.equals( "Seconds" ))
{
After Change
{
JsonNode treeNode = jsonParser.readValueAsTree();
String periodType = treeNode.path("fieldType").path("name").asText();
String periodName = treeNode.path("periodType").path("name").asText();
// any "weird" numbers we should worry about?
int periodValue = treeNode.path(periodType).asInt();
if (periodName.equals( "Seconds" )) {